package com.imonsoft.sqm.service.business.supplier_quality;


import java.util.List;

import org.springframework.validation.BindingResult;

import com.imonsoft.common.base.service.BaseService;
import com.imonsoft.common.httpModel.DataGrid;
import com.imonsoft.common.httpModel.Pager;
import com.imonsoft.common.httpModel.ReturnMessage;
import com.imonsoft.sqm.pojo.business.supplier_quality.AnswerProblem;
import com.imonsoft.sqm.vo.business.supplier_quality.AnswerProblemVo;
import com.imonsoft.sqm.web.excel.AnswerProblemExcel.AnswerProblemImportDto;

public interface AnswerProblemService  extends BaseService<AnswerProblem>{

	DataGrid<AnswerProblemVo> getDataGridVoBy(AnswerProblem answerProblem, Pager pager);

	void txAddAnswerProblem(String answer, String answerDetail, ReturnMessage message, BindingResult result) throws Exception;

	void deleteAnswerProblem(String answerDetail) throws Exception;

	AnswerProblemVo getModifyData(Long supplierId, String year);

	void txUpdateOrAddAnswer(String answerDetail, String answer) throws Exception;
	/**
	 * zhouwei 系统导入保存
	 * 
	 * @param entity
	 * @return
	 */
	public void txInsertForSys(List<AnswerProblemImportDto> answerProblemImportDtoList);

	
	public List<AnswerProblem> findListByState(AnswerProblem entity);
}
